const getters = {
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  name: state => state.user.userInfo.name,
  account: state => state.user.userInfo.account,
  userId: state => state.user.userInfo.id,
  forceChangePassword: state => state.user.userInfo.forceChangePassword,
  routes: state => state.permission.routes,
  dynamicRoutes: state => state.permission.dynamicRoutes,
  buttonPermission: state => state.permission.buttonPermission,
  errorLogs: state => state.errorLog.logs,
  showChangePwdDialog: state => state.app.showChangePwdDialog,
  showChangePwdClose: state => state.app.showChangePwdClose,
  // 未读消息数量
  unreadMessageCount: state => state.app.unreadMessageCount
}
export default getters
